package advanced.design_mode.buildermode;

public class AirShip {
    private OrbitModule orbitModule;
    private Engine engine;
    private EscapeTower escapeTower;

    public OrbitModule getOrbitModule() {
        return orbitModule;
    }

    public void setOrbitModule(OrbitModule orbitModule) {
        this.orbitModule = orbitModule;
    }

    public Engine getEngine() {
        return engine;
    }

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public EscapeTower getEscapeTower() {
        return escapeTower;
    }

    public void setEscapeTower(EscapeTower escapeTower) {
        this.escapeTower = escapeTower;
    }

    @Override
    public String toString() {
        return "AirShip{" +
                "orbitModule=" + orbitModule +
                ", engine=" + engine +
                ", escapeTower=" + escapeTower +
                '}';
    }
}

class OrbitModule {
    private String name;

    public OrbitModule(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

class Engine {
    private String name;

    public Engine(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

class EscapeTower {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public EscapeTower(String name) {
        this.name = name;
    }
}